#ifndef __IMAGE__H
#define __IMAGE__H

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <tiffio.h>
#include <string.h>
#include <sys/time.h>

#include "gaussian.h"

/* Mean value and maximum deviation acceptable for the Gaussian amplitude */
#define AVERAGE 200
#define DEVIATION 50
#define MICROSECONDSPERSECOND 1000000

/* Write the image in a .TIFF file (useful for debugging) */
void writeImage (unsigned char* image, char *dest, int weight, int height);

/* Create a Gaussian image (useful for debugging) */
unsigned char* createImage (int width, int height);

/* Calculate the time difference between time_1 and time_2 (useful for measuring performance) */
long int getCompletionTime (struct timeval* time_1, struct timeval* time_2);

#endif
